package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 巡检任务-历史记录-每天凌晨两点生成记录对象 inspection_task_history
 * 
 * @author ruoyi
 * @date 2021-04-27
 */
public class InspectionTaskHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Integer id;

    /** 巡检任务id */
    @Excel(name = "巡检任务id")
    private Integer taskId;

    /** 单位id */
    @Excel(name = "单位id")
    private Integer deptId;

    /** 路线id */
    @Excel(name = "路线id")
    private Integer inspectionLineId;

    /** 路线名称 */
    @Excel(name = "路线名称")
    private String inspectionLineName;

    /** 巡检组id */
    @Excel(name = "巡检组id")
    private Integer inspectionGroupId;

    /** 巡检组名称 */
    @Excel(name = "巡检组名称")
    private String inspectionGroupName;

    /** 原始的计划时间 YYYY-MM-dd */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "原始的计划时间 YYYY-MM-dd", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planTime;

    /** 计划巡检开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划巡检开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planStartTime;

    /** 计划巡检完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划巡检完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planFinishTime;

    /** 1室内2室外 */
    @Excel(name = "1室内2室外")
    private String inoutFlag;

    /** 类似 2021-04-16 09:21-23:30  */
    @Excel(name = "类似 2021-04-16 09:21-23:30 ")
    private String dateTimeInterval;

    /** 设施巡检总数 */
    @Excel(name = "设施巡检总数")
    private Integer allTotal;

    /** 已经巡检的总数 */
    @Excel(name = "已经巡检的总数")
    private Integer doneTotal;

    /** 跳过巡检的总数 */
    @Excel(name = "跳过巡检的总数")
    private Integer skipTotal;

    /** 还未巡检的总数 */
    @Excel(name = "还未巡检的总数")
    private Integer todoTotal;

    /** 计算出来的巡检率 */
    @Excel(name = "计算出来的巡检率")
    private Integer donePercent;

    /** 任务编号 */
    @Excel(name = "任务编号")
    private String taskNo;

    /** 站点ID */
    @Excel(name = "站点ID")
    private Integer tenantId;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setTaskId(Integer taskId) 
    {
        this.taskId = taskId;
    }

    public Integer getTaskId() 
    {
        return taskId;
    }
    public void setDeptId(Integer deptId) 
    {
        this.deptId = deptId;
    }

    public Integer getDeptId() 
    {
        return deptId;
    }
    public void setInspectionLineId(Integer inspectionLineId) 
    {
        this.inspectionLineId = inspectionLineId;
    }

    public Integer getInspectionLineId() 
    {
        return inspectionLineId;
    }
    public void setInspectionLineName(String inspectionLineName) 
    {
        this.inspectionLineName = inspectionLineName;
    }

    public String getInspectionLineName() 
    {
        return inspectionLineName;
    }
    public void setInspectionGroupId(Integer inspectionGroupId) 
    {
        this.inspectionGroupId = inspectionGroupId;
    }

    public Integer getInspectionGroupId() 
    {
        return inspectionGroupId;
    }
    public void setInspectionGroupName(String inspectionGroupName) 
    {
        this.inspectionGroupName = inspectionGroupName;
    }

    public String getInspectionGroupName() 
    {
        return inspectionGroupName;
    }
    public void setPlanTime(Date planTime) 
    {
        this.planTime = planTime;
    }

    public Date getPlanTime() 
    {
        return planTime;
    }
    public void setPlanStartTime(Date planStartTime) 
    {
        this.planStartTime = planStartTime;
    }

    public Date getPlanStartTime() 
    {
        return planStartTime;
    }
    public void setPlanFinishTime(Date planFinishTime) 
    {
        this.planFinishTime = planFinishTime;
    }

    public Date getPlanFinishTime() 
    {
        return planFinishTime;
    }
    public void setInoutFlag(String inoutFlag) 
    {
        this.inoutFlag = inoutFlag;
    }

    public String getInoutFlag() 
    {
        return inoutFlag;
    }
    public void setDateTimeInterval(String dateTimeInterval) 
    {
        this.dateTimeInterval = dateTimeInterval;
    }

    public String getDateTimeInterval() 
    {
        return dateTimeInterval;
    }
    public void setAllTotal(Integer allTotal) 
    {
        this.allTotal = allTotal;
    }

    public Integer getAllTotal() 
    {
        return allTotal;
    }
    public void setDoneTotal(Integer doneTotal) 
    {
        this.doneTotal = doneTotal;
    }

    public Integer getDoneTotal() 
    {
        return doneTotal;
    }
    public void setSkipTotal(Integer skipTotal) 
    {
        this.skipTotal = skipTotal;
    }

    public Integer getSkipTotal() 
    {
        return skipTotal;
    }
    public void setTodoTotal(Integer todoTotal) 
    {
        this.todoTotal = todoTotal;
    }

    public Integer getTodoTotal() 
    {
        return todoTotal;
    }
    public void setDonePercent(Integer donePercent) 
    {
        this.donePercent = donePercent;
    }

    public Integer getDonePercent() 
    {
        return donePercent;
    }
    public void setTaskNo(String taskNo) 
    {
        this.taskNo = taskNo;
    }

    public String getTaskNo() 
    {
        return taskNo;
    }
    public void setTenantId(Integer tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Integer getTenantId() 
    {
        return tenantId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("taskId", getTaskId())
            .append("deptId", getDeptId())
            .append("inspectionLineId", getInspectionLineId())
            .append("inspectionLineName", getInspectionLineName())
            .append("inspectionGroupId", getInspectionGroupId())
            .append("inspectionGroupName", getInspectionGroupName())
            .append("planTime", getPlanTime())
            .append("planStartTime", getPlanStartTime())
            .append("planFinishTime", getPlanFinishTime())
            .append("createTime", getCreateTime())
            .append("inoutFlag", getInoutFlag())
            .append("dateTimeInterval", getDateTimeInterval())
            .append("allTotal", getAllTotal())
            .append("doneTotal", getDoneTotal())
            .append("skipTotal", getSkipTotal())
            .append("todoTotal", getTodoTotal())
            .append("donePercent", getDonePercent())
            .append("taskNo", getTaskNo())
            .append("tenantId", getTenantId())
            .toString();
    }
}
